import { Component, OnInit } from '@angular/core';

import{ Channel } from '../../utils/channel';

@Component({
  selector: 'app-info',
  templateUrl: './info.page.html',
  styleUrls: ['./info.page.css'],
  providers:[Channel]
})
export class InfoPage implements OnInit {

  contact:string;

  constructor(private channel:Channel) { }

  ngOnInit() {
        // user
   let host:string = window.location.hostname;

    switch (host) {
      // 电商先生
      case 'shop.630game.com':

        this.contact = "assets/img/contact.jpg";
      break;

      // 品谱大数据
      case 'www.hzbigdate.com':

        this.contact = "assets/img/contact.jpg";
      break;

      // 中防小控
      case 'qzt.sinoac.org':

      break;

      // 淘控
      case 'shuju.315taokong.com':
        this.contact = "assets/img/contact.jpg";
      break;

      // 数据空间
      case 'info.veiwa.cn':
       this.contact = "assets/img/contact.jpg";
      break;

      // qbmf
      case 'qbmf.trenddata.cn':
        this.contact = "assets/img/contact.jpg";
      break;

      // 电商舆情
      case 'dianshangyuqing.com':
        this.contact = "assets/img/contact.jpg";
      break;

      default:
        this.contact = "assets/img/contact.jpg";
      break;
    }
  }

}
